<?php
session_start();
require_once 'controller/ControllerError.php';
require_once 'controller/ControllerBackOffice.php';

$controlerBackOffice = new ControllerBackOffice();
$error = new ControllerError();

if(isset($_GET['page'])){
    $action = $_GET['page'];
}else{
    $action = 'Accueil';
}

switch ($action){
    case "Accueil" : 
        $controlerBackOffice->index();
        break;
    case "Evenements" : 
        $controlerBackOffice->event();
        break;
    case "identification" : 
        $controlerBackOffice->identification();
        break;
    case "editEvent" : 
        $controlerBackOffice->editEvent();
        break;
    case "Photos" :
        $controlerBackOffice->photos();
        break;
    default : 
        $error->index();
}

?>